require '.\googlereader\j2r.rb'
require "./filter.rb"
require 'open-uri' 
require 'rss2.rb'
require './postfile.rb'

#=begin
`perl .\\googlereader\\googlereader.pl`
if (0 == j2r('unreadcomic.json'))
	puts 'get nothing'
	return
end
#=end
iii = open( 'youkugoogle.rss','r')
r = filter iii

if(r=='nothing')
	print 'filter err'
	return
end

rss1 = open 'b.xml','w'
rss1.print r

rss1.close

postfile 'herberthb.hostrator.com','b.xml'
